<template>
<div>
  <h3>{{isworking ? workingTitle : restTitle}}</h3>
</div>
</template>

<script>
export default {
  name: 'StateTitleComponent',
  data () {
    return {
      title: 'learning vue.js',
      workingTitle: 'Work!',
      restTitle: 'Rest!'
    }
  },
  props: ['isworking']
}
</script>

<style scoped>

</style>
